<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Comments</title>
    <!-- 最新版本的 Bootstrap 核心 CSS 文件 -->
    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css"
          integrity="sha384-HSMxcRTRxnN+Bdg0JdbxYKrThecOKuH5zCYotlSAcp1+c8xmyTe9GYg1l9a69psu"
          crossorigin="anonymous">
</head>
<body>
    <form method="post" action={{url_for(".add")}}>
        <input class="form-control" type="text" name="author" placeholder="author">
        <input class="form-control" type="text" name="content" placeholder="content">
        <button class="btn btn-success" type="submit">提交</button>
    </form>
    {% for c in comments %}
        <div class="bg_success">{{c.content}} from {{c.author}} @ {{c.create_time|format_date}}</div>
    {% endfor %}
</body>
</html>